<!DOCTYPE html>
<head>
<style>
img {
    background-image: url("data:image/svg+xml,<svg></svg>");
}
</style>
<script>
function changeStyleAndLayout() {
    document.body.style.height = '100px';
    var forceLayout = document.body.offsetWidth;
    if (window.testRunner)
        testRunner.dumpAsText();
}
</script>
</head>
<body>
    Test for crbug.com/248843: This test passes if it does not crash.<br/>
    <img onload="changeStyleAndLayout()" src="">
</body>
</html>

